PROGRAMS = test-logrw-nodumps test-logrw-nodumps_1th test-logrw test-custom
# test-logrw-nodumps 
# test-logrw
# test-create test-mutex test-join test-sleep test-time-slice test-ReadWrite
# test-block
INCLUDES = -I. -I$(srcdir) -I../include -I ../include
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CFLAGS)
CC = gcc
CFLAGS = -g -O0 -Wall -m32 -pthread 
#DEFS = -DHAVE_CONFIG_H
DEFS = -DHAVE_CONFIG_H -DUSE_PTHREADS
LIBSTHREAD = ../sthread_lib/libsthread.a
LIBLOGRW= ../logrw/liblogrw.a

all: $(PROGRAMS)

%:	%.c $(LIBLOGRW)
	$(COMPILE) ../sthread_lib/sthread_start.o -o $@ $< $(LIBSTHREAD) $(LIBLOGRW)

clean: clean-PROGRAMS
	rm -f *.o

clean-PROGRAMS:
	@list='$(PROGRAMS)'; for p in $$list; do \
	  echo " rm -f $$p $$p.o"; \
	  rm -f $$p $$p.o ; \
	done


# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
